using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 系统区域仓储接口
    /// </summary>
    public interface ISystemRegionRepository : IRepository<SystemRegion>
    {
        Task<IEnumerable<SystemRegion>> GetByParentCodeAsync(string parentCode);
        Task<SystemRegion> GetByCodeAsync(string code);
        Task<IEnumerable<SystemRegion>> GetByLevelAsync(int level);
        Task<IEnumerable<SystemRegion>> GetByNameAsync(string name);
        Task<SystemRegion> GetByCodeAndNameAsync(string code, string name);
    }
}